home *** CD-ROM | disk | FTP | other *** search
/ Nebula 1 / Nebula One.iso / Communications / pcomm / Source / misc.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-06-12  |  1.5 KB  |  63 lines

  1. /*
  2.  * Definitions to support the home-grown curses(3) functions and to make
  3.  * the old curses(3) routines happy.  ("config.h" must be included first).
  4.  */
  5.  
  6. #define mvwattrstr(w,y,x,a,s)    (wmove(w,y,x)==ERR?ERR:wattrstr(w,a,s))
  7. #define mvwattrch(w,y,x,a,c)    (wmove(w,y,x)==ERR?ERR:wattrch(w,a,c))
  8. #define mvwattrnum(w,y,x,a,n)    (wmove(w,y,x)==ERR?ERR:wattrnum(w,a,n))
  9. #define mvattrstr(y,x,a,s)    (wmove(stdscr,y,x)==ERR?ERR:wattrstr(stdscr,a,s))
  10. #define mvattrch(y,x,a,c)    (wmove(stdscr,y,x)==ERR?ERR:wattrch(stdscr,a,c))
  11. #define mvattrnum(y,x,a,n)    (wmove(stdscr,y,x)==ERR?ERR:wattrnum(stdscr,a,n))
  12. #define attrstr(a,s)        wattrstr(stdscr,a,s)
  13. #define attrch(a,c)        wattrch(stdscr,a,c)
  14. #define attrnum(a,n)        wattrnum(stdscr,a,n)
  15.  
  16. #ifdef OLDCURSES
  17. #ifdef NOPROMOTE
  18. #define A_BOLD        0
  19. #define A_BLINK        0
  20. #define A_REVERSE    1
  21. #define A_DIM        0
  22. #define A_STANDOUT    1
  23. #define A_UNDERLINE    0
  24. #else /* NOPROMOTE */
  25. #define A_BOLD        1
  26. #define A_BLINK        1
  27. #define A_REVERSE    1
  28. #define A_DIM        1
  29. #define A_STANDOUT    1
  30. #define A_UNDERLINE    1
  31. #endif /* NOPROMOTE */
  32. #endif /* OLDCURSES */
  33.  
  34. #ifdef OLDCURSES
  35. typedef char chtype;
  36. #endif /* OLDCURSES */
  37.  
  38. #ifdef ACS_HLINE
  39. #define VERT        (chtype)0
  40. #define HORZ        (chtype)0
  41. #else /* ACS_HLINE */
  42. #define VERT        (chtype)'|'
  43. #define HORZ        (chtype)'-'
  44. #define ACS_VLINE    (chtype)'|'
  45. #define ACS_HLINE    (chtype)'-'
  46. #endif /* ACS_HLINE */
  47.  
  48. /*
  49.  * Other miscellaneous stuff
  50.  */
  51.  
  52. #define BEL        7
  53. #define BS        8
  54. #define ESC        27
  55. #define DEL        127
  56.  
  57. #define MANUAL_CLEAR    0
  58. #define AUTO_CLEAR    1
  59.  
  60. #define DENIED        0
  61. #define WRITE_OK    1
  62. #define OK_BUT_EXISTS    2
  63.